package main

import (
	"github.com/lxn/walk"
	. "github.com/lxn/walk/declarative"
)

type MyMainWindowUI struct {
	startBtn      *walk.PushButton
	speakBtn      *walk.PushButton
	speakLineEdit *walk.LineEdit
	bloodComBox   *walk.ComboBox
	porfComBox    *walk.ComboBox
	speedLabel    *walk.Label
	speedLineEdit *walk.LineEdit
}

type MyMainWindow struct {
	*walk.MainWindow
	mw         MainWindow
	ui         MyMainWindowUI
	bloodModel *EnvModel
	porfModel  *EnvModel
	data       *ConstData
	bloodFunc  func()
	porfFunc   func()
	speakFunc  func()
}

type ConstData struct {
	startToStop bool
	speakOffOn  bool
}

type EnvItem struct {
	name  string
	value string
}

type EnvModel struct {
	walk.ListModelBase
	items []EnvItem
}
